<!DOCTYPE html>
<html lang="en">
<#include "../common/common.ftl">
<body>
<div id="wrapper" class="toggled">
    <#-- 侧边栏 -->
    <#include "../common/nav.ftl">

    <#-- 主要内容 -->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form class="form-horizontal col-md-6" role="form" action="/sell/seller/category/save" method="post">
                        <input type="hidden" name="categoryId" value="${(category.categoryId)!''}" />
                        <div class="form-group">
                            <label for="categoryName" class="col-sm-2 control-label">类目名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="categoryName" name="categoryName" value="${(category.categoryName)!''}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="categoryType" class="col-sm-2 control-label">类目编号</label>
                            <div class="col-sm-10">
                                <input type="number" class="form-control" id="categoryType" name="categoryType" value="${(category.categoryType?string.computer)!''}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default btn-primary">提交</button>
                                <#if category.categoryId??>
                                    <a href="/sell/seller/category/list" class="btn btn-default btn-primary">返回列表</a>
                                </#if>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<#include "../common/js.ftl">
</body>
</html>